package net.comm.group.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;
import org.apache.struts.upload.FormFile;


public class GroupsForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";

	private int  	QryUserID;			//创建会员
	private int  	QryFirs;			//
	private int  	QrySecs;				//
	private int  	QryThis;			//
	private int  	QryPri;				//所在省份
	private int  	QryCity;			//所在城市
	private String  QryOrderby;			//
	private String  QryName;			//群组名称
	private String  QryAddType;			//群组加入类型
	private int  	QryVillageID;		//所属社区
	private int  	QryGroupID;			//群组ID
	private String  QryStatus;				//

	private String  Isradnom = "";		//是否随机显示		

	private int  GroupID;				//群组ID
	private int  VillageID;				//所属社区
	private String  Name;				//群组名称
	private String  Subject;			//群组主题
	private int  Firsort;			//
	private int  Secsort;			//
	private int  ThiSort;			//
	private int  Pic;					//群图标
	private int  Work_location;			//所在省份
	private int  Work_sublocation;		//所在城市
	private int  Work_Area;				//所在区县
	private int  JoinNum;				//当前人数
	private int  Num;					//限定人数
	private String  Ctime;				//
	private int  UserID;				//创建会员
	private int  PepoleVal;				//人气值
	private int  PartakeVal;			//参与值
	private int  ContrVal;				//贡献值
	private String  Type;				//类型
	private int  UseAlbumSize;			//相册已使用容量
	private int  AlbumSize;				//相册容量
	private String  Status;				//
	private String  Mtime;				//
	
	private FormFile  PicFile;			//群图标
	private String  Email;				//
	private String  Cont;				//
			
	private String action = "";
	
	public GroupsForm() {
		super();
		// TODO Auto-generated constructor stub
		Clear();
		
	}
	public void Clear() {

		QryUserID = 0;
		QryFirs = 0;				//
		QryOrderby = "";			//
		Isradnom = "";
		QrySecs = 0;				//
		QryPri = 0;		//所在省份
		QryCity = 0;	//所在城市		
		QryName = "";
		QryAddType = "";
		QryVillageID = 0;
		QryThis = 0;
		QryStatus = "";
		
		GroupID = 0;				//群组ID
		VillageID = 0;				//所属社区
		Name = "";					//群组名称
		Subject = "";				//群组主题
		Firsort = 0;				//
		Secsort = 0;				//
		ThiSort = 0;				//
		Pic = 0;					//群图标
		Work_location = 0;			//所在省份
		Work_sublocation = 0;		//所在城市
		Work_Area = 0;				//所在区县
		JoinNum = 0;				//当前人数
		Num = 0;					//限定人数
		Ctime = "";					//
		UserID = 0;				//创建会员
		PepoleVal = 0;				//人气值
		PartakeVal = 0;				//参与值
		ContrVal = 0;				//贡献值
		Type = "";					//类型
		UseAlbumSize = 0;			//相册已使用容量
		AlbumSize = 0;				//相册容量
		Status = "";				//
		Mtime = "";					//	
		PicFile = null;
		Email = "";
		Cont = "";		
	}
	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	



	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}	

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}

	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}


	public String getName() {
		return Name;
	}

	public String getSubject() {
		return Subject;
	}

	public int getFirsort() {
		return Firsort;
	}

	public int getSecsort() {
		return Secsort;
	}

	public int getThiSort() {
		return ThiSort;
	}

	public FormFile getPicFile() {
		return PicFile;
	}


	public int getJoinNum() {
		return JoinNum;
	}

	public int getNum() {
		return Num;
	}

	public int getPepoleVal() {
		return PepoleVal;
	}

	public int getPartakeVal() {
		return PartakeVal;
	}

	public int getContrVal() {
		return ContrVal;
	}

	public String getType() {
		return Type;
	}

	public int getAlbumSize() {
		return AlbumSize;
	}

	public String getStatus() {
		return Status;
	}


	public void setName(String name) {
		Name = name;
	}

	public void setSubject(String subject) {
		Subject = subject;
	}

	public void setFirsort(int firsort) {
		Firsort = firsort;
	}

	public void setSecsort(int secsort) {
		Secsort = secsort;
	}

	public void setThiSort(int thiSort) {
		ThiSort = thiSort;
	}

	public int getGroupID() {
		return GroupID;
	}

	public int getPic() {
		return Pic;
	}
	public String getCtime() {
		return Ctime;
	}
	public String getMtime() {
		return Mtime;
	}
	public void setGroupID(int groupID) {
		GroupID = groupID;
	}

	public void setPic(int pic) {
		Pic = pic;
	}
	public void setCtime(String ctime) {
		Ctime = ctime;
	}
	public void setMtime(String mtime) {
		Mtime = mtime;
	}
	public void setPicFile(FormFile picFile) {
		PicFile = picFile;
	}

	public int getWork_location() {
		return Work_location;
	}

	public int getWork_sublocation() {
		return Work_sublocation;
	}

	public void setWork_location(int work_location) {
		Work_location = work_location;
	}

	public void setWork_sublocation(int work_sublocation) {
		Work_sublocation = work_sublocation;
	}

	public void setJoinNum(int joinNum) {
		JoinNum = joinNum;
	}

	public void setNum(int num) {
		Num = num;
	}


	public int getUserID() {
		return UserID;
	}
	public void setUserID(int userID) {
		UserID = userID;
	}
	public void setPepoleVal(int pepoleVal) {
		PepoleVal = pepoleVal;
	}

	public void setPartakeVal(int partakeVal) {
		PartakeVal = partakeVal;
	}

	public void setContrVal(int contrVal) {
		ContrVal = contrVal;
	}

	public void setType(String type) {
		Type = type;
	}

	public void setAlbumSize(int albumSize) {
		AlbumSize = albumSize;
	}

	public void setStatus(String status) {
		Status = status;
	}


	public int getUseAlbumSize() {
		return UseAlbumSize;
	}

	public void setUseAlbumSize(int useAlbumSize) {
		UseAlbumSize = useAlbumSize;
	}



	public int getQryUserID() {
		return QryUserID;
	}
	public int getQryGroupID() {
		return QryGroupID;
	}
	public void setQryUserID(int qryUserID) {
		QryUserID = qryUserID;
	}
	public void setQryGroupID(int qryGroupID) {
		QryGroupID = qryGroupID;
	}
	public String getEmail() {
		return Email;
	}

	public void setEmail(String email) {
		Email = email;
	}

	public String getCont() {
		return Cont;
	}

	public void setCont(String cont) {
		Cont = cont;
	}


	public String getQryOrderby() {
		return QryOrderby;
	}

	public void setQryOrderby(String qryOrderby) {
		QryOrderby = qryOrderby;
	}

	public String getIsradnom() {
		return Isradnom;
	}

	public void setIsradnom(String isradnom) {
		Isradnom = isradnom;
	}
	public int getWork_Area() {
		return Work_Area;
	}
	public void setWork_Area(int work_Area) {
		Work_Area = work_Area;
	}
	public int getQryFirs() {
		return QryFirs;
	}
	public int getQrySecs() {
		return QrySecs;
	}
	public int getQryPri() {
		return QryPri;
	}
	public int getQryCity() {
		return QryCity;
	}
	public void setQryFirs(int qryFirs) {
		QryFirs = qryFirs;
	}
	public void setQrySecs(int qrySecs) {
		QrySecs = qrySecs;
	}
	public void setQryPri(int qryPri) {
		QryPri = qryPri;
	}
	public void setQryCity(int qryCity) {
		QryCity = qryCity;
	}
	public String getQryName() {
		return QryName;
	}
	public void setQryName(String qryName) {
		QryName = qryName;
	}
	public String getQryAddType() {
		return QryAddType;
	}
	public void setQryAddType(String qryAddType) {
		QryAddType = qryAddType;
	}
	public int getQryVillageID() {
		return QryVillageID;
	}
	public int getVillageID() {
		return VillageID;
	}
	public void setQryVillageID(int qryVillageID) {
		QryVillageID = qryVillageID;
	}
	public void setVillageID(int villageID) {
		VillageID = villageID;
	}
	public int getQryThis() {
		return QryThis;
	}
	public void setQryThis(int qryThis) {
		QryThis = qryThis;
	}
	public String getQryStatus() {
		return QryStatus;
	}
	public void setQryStatus(String qryStatus) {
		QryStatus = qryStatus;
	}



	
}